package world;

import java.util.ArrayList;

import org.newdawn.slick.Image;

public class Event {

	private String name;
	private Image image;
	private float xPos, yPos;
	
	boolean visable, stop, newEvent = false;
	
	private ArrayList<Path> paths = new ArrayList<Path>();
	
	public Event(String name, int X, int Y, Image image){
		
		this.name = name;
		xPos = X;
		yPos = Y;
		this.image = image;

	}
	
	public void triggerEvent(){
		
		if(stop){System.out.print(stop); Pathing.shutdown(); Player.setEvent(this);}
		
		if(newEvent){
			
		}
		else{
			
		}
		
		
		
		
		
		
		System.out.println(name);
		
	};
	
	public void setStop(boolean bool){stop = bool;}

	public String getName(){return name;}
	
	public Image getImage(){return image;}
	
	public float getX(){return xPos;}
	
	public float getY(){return yPos;}
	
	public boolean isVisible(){return visable;}
	
	public void setVisible(boolean bool){visable = bool;}
	
	public void addPath(Path path){paths.add(path);}
	
	public ArrayList<Path> getPaths(){return paths;}
	
	public int getPathCount(){return paths.size();}
	
	public Event getEvent(){return this;}
	
	public boolean hasNew(){return newEvent;}
}
